package com.useeinfo.service.impl;

import com.useeinfo.dao.RecruitMapper;
import com.useeinfo.module.Recruit;
import com.useeinfo.service.IRecruit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by xianping on 2017/1/20.
 */
@Component
public class RecruitImpl implements IRecruit {

    @Autowired
    private RecruitMapper recruitMapper;

    @Override
    public List<Recruit> findRecruit() {

        List<Recruit> recruits = recruitMapper.findRecruit();
        return recruits;
    }

	@Override
	public List<Recruit> findRecruitById(Long id) {

		List<Recruit> recruits = recruitMapper.findRecruitById(id);
		return recruits;
	}
}
